﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Soft.Service
{


    /// <summary>
    /// 方法特性标识
    /// </summary>
    [AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
    public sealed class JobMethodInfoAttribute : Attribute
    {
   
        /// <summary>
        /// 功能号
        /// </summary>
        public string FunctionCode
        {
            get
            {
                return this.mFunctionCode;
            }
            set
            {
                this.mFunctionCode = value.ToUpper();
            }
        }


        /// <summary>
        /// 是否可以操作
        /// </summary>
        public bool Action { get; set; } = true;

    
        /// <summary>
        /// 解释说明
        /// </summary>
        public string Explain { get; set; }


        /// <summary>
        /// 功能代码
        /// </summary>
        private string mFunctionCode = string.Empty;



    }
}
